package thread.threadlocal;

import io.netty.util.concurrent.FastThreadLocal;
import io.netty.util.concurrent.FastThreadLocalThread;

public class FastThreadLocalTest {

    private static FastThreadLocal<String> threadLocal = new FastThreadLocal<String>();

    public static void main(String[] args) {
        new FastThreadLocalThread(() -> {
            threadLocal.set("liu");
            System.out.println(threadLocal.get());
        }).start();

        new FastThreadLocalThread(() -> {
            threadLocal.set("pai");
            System.out.println(threadLocal.get());
        }).start();
    }
}
